package com.mqz.zebraEcommerce.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mqz.zebraEcommerce.commodity.vo.CategoryLevel2VO;
import com.mqz.zebraEcommerce.common.utils.PageUtils;
import com.mqz.zebraEcommerce.commodity.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品分类表
 *
 * @author mqz
 * @email 952905931@qq.com
 * @date 2025-02-24 20:13:12
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listTree();

    Long[] getCascadedCategoryId(Long categoryId);

    List<CategoryEntity> getCategoriesLevel1();

    Map<String,List<CategoryLevel2VO>> getCategoriesLevel2();
}

